increase value of new_location by one if cmp_a > 0 and we hit the end of
authorKristian Rietveld <kris@gtk.org>
Sun, 10 Feb 2002 22:53:20 +0000 (22:53 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sun, 10 Feb 2002 22:53:20 +0000 (22:53 +0000)
Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
        value of new_location by one if cmp_a > 0 and we hit the end of
        the list and pass NULL instead of a 'NULL-iter' with
        _rows_reordered

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkliststore.c

index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 3a03a86448991303752dd99ff3f2cc36e1b21cbc..014fddcb5f0853e3875f3718b342ba3779233f55 100644 (file)
@@ -1,3 +1,10 @@
+Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
+       value of new_location by one if cmp_a > 0 and we hit the end of
+       the list and pass NULL instead of a 'NULL-iter' with
+       _rows_reordered
+
 Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
index 829cfa939cb981d29ae99ba56127cb4362876729..1c9003790230a130699f4b86d6169aff80c25652 100644 (file)
@@ -1777,6 +1777,9 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
        cmp_a = (* func) (GTK_TREE_MODEL (list_store), iter, &tmp_iter, data);
     }
 
+  if (!list->next && cmp_a > 0)
+    new_location++;
+
   if ((!list->next) && (cmp_a > 0))
     {
       list->next = G_SLIST (iter->user_data);
@@ -1824,7 +1827,7 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
   tmp_iter.user_data = NULL;
 
   gtk_tree_model_rows_reordered (GTK_TREE_MODEL (list_store),
-                                tmp_path, &tmp_iter,
+                                tmp_path, NULL,
                                 new_order);
 
   gtk_tree_path_free (tmp_path);